﻿@{
    ViewBag.Title = "重置密码";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script src="~/Content/scripts/plugins/jquery.md5.js"></script>
<script>
    var keyValue = request('keyValue');
    $(function () {
        $("#F_Account").val(request('Account'));
        $("#F_RealName").val(request('RealName'));
    })
    //保存事件
    function AcceptClick() {
        if (!$('#form1').Validform()) {
            return false;
        }
        var postData = $("#form1").GetWebControls(keyValue);
        postData["Password"] = $.md5($.trim($("#F_Password").val()))
        $.SaveForm({
            url: "../../BaseManage/User/SaveRevisePassword?keyValue=" + keyValue,
            param: postData,
            loading: "正在保存数据...",
            success: function () {
            }
        })
    }
</script>
<div style="margin-top: 20px; margin-right: 30px;">
    <table class="form">
        <tr>
            <td class="formTitle">姓名</td>
            <td class="formValue">
                <input id="F_RealName" readonly type="text" class="form-control" />
            </td>
        </tr>
        <tr>
            <td class="formTitle">帐户</td>
            <td class="formValue">
                <input id="F_Account" readonly type="text" class="form-control" />
            </td>
        </tr>
        <tr>
            <th class="formTitle">新密码<font face="宋体">*</font>
            </th>
            <td class="formValue">
                <input id="F_Password" type="password" class="form-control" placeholder="请输入新密码" isvalid="yes" checkexpession="NotNull" />
            </td>
        </tr>
    </table>
</div>
